package com.abhinav.designPatterns.factorymethod;

// Client
public class Client {
	/*private void someMethodThatLogs(AbstractLoggerCreator logCreator) {
		Logger logger = logCreator.getLogger();
		logger.log("message");

	}*/

	public static void main(String[] args) {
		// for the purposes of this example, create an XMLLoggerCreator directly,
		// but this would normally be passed to constructor for use.
		AbstractLoggerCreator creator = new XMLLoggerCreator();
		
		//Client client = new Client();
		//client.someMethodThatLogs(creator);
		
		Logger logger = creator.getLogger();
		logger.log("message");

	}
}
